home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Developer Connection Student Program
/
ADC Tools Sampler CD Disk 3 1999.iso
/
Cool Demos, SDKs, & Tools
/
Demos⁄Tools⁄Offers
/
Eiffel for CW beta 3
/
EiffelS2
/
LIBRARY
/
MOTEL
/
MOTEL.c
< prev
next >
Wrap
Text File
|
1999-05-02
|
2KB
|
51 lines
/*------------------------------------------------------------------*/
/* Eiffel/S II MacOS Runtime */
/*------------------------------------------------------------------*/
/* Author : Ian Joyner */
/* Release : 1.0 */
/* Date : Dec. 1997 */
/* Copyright : Ian Joyner */
/*------------------------------------------------------------------*/
#include <Types.h>
#include <ToolUtils.h>
#include <Eiffel2.h>
/* NOTE: Any Eiffel INTEGER parameters must go through here, so we can
convert the 32 bit INTEGER into INTEGER16. It might be a good
idea to introduce and INTEGER16 type into the compiler FOR
EXTERNAL PURPOSES ONLY in order to avoid most of these
glue routines. */
/* Naming convention:
I have adopted the convention in this module the names:
platform_<module>_routinename */
Str255 scratch_string;
INTEGER platform_hi_word (INTEGER w)
{
return ((INTEGER) HiWord (w));
}
INTEGER platform_lo_word (INTEGER w)
{
return ((INTEGER) LoWord (w));
}
/********************************************************************/
/* */
/* MOUSE */
/* */
/********************************************************************/
void platform_get_mouse (INTEGER *x, INTEGER *y)
{
Point p;
GetMouse (&p);
*x = p.h;
*y = p.v;
}